package com.lzw.mapper.superAdmin;

import com.lzw.pojo.Bills;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface BillsManageMapper {
    List<Bills> list(@Param("medicine") String medicine, @Param("billDate") LocalDate billDate);

    void delete(@Param("ids") List<Integer> ids);

    @Insert("INSERT INTO pharmacymanagement.bills (medicine, bill_date, total_amount) VALUES (#{medicine}, #{billDate}, #{totalAmount})")
    void add(Bills bills);

    void update(Bills bills);
}
